/// YApi QuickType插件生成，具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation
import "package:share_image_server/export_all.dart";

ConfigModel configModelFromJson(String str) =>
    ConfigModel.fromJson(json.decode(str));

String configModelToJson(ConfigModel data) => json.encode(data.toJson());

class ConfigModel {
  ConfigModel({
    required this.savePath,
    required this.logPath,
    required this.infoM,
    required this.port,
    required this.host,
    required this.checkToken,
    required this.consoleLog,
  });

  String savePath;
  String logPath;
  bool infoM;
  int port;
  String host;
  String checkToken;
  bool consoleLog;

  factory ConfigModel.fromJson(Map<dynamic, dynamic> json) => ConfigModel(
        savePath: json["save_path"],
        logPath: json["log_path"],
        infoM: json["info_m"],
        port: json["port"],
        host: json["host"],
        checkToken: json["check_token"],
        consoleLog: json["console_log"],
      );

  Map<dynamic, dynamic> toJson() => {
        "save_path": savePath,
        "log_path": logPath,
        "info_m": infoM,
        "port": port,
        "host": host,
        "check_token": checkToken,
        "console_log": consoleLog,
      };
}
